package com.tony.study.designMode.DM2_抽象工厂.Factory;

import com.tony.study.designMode.DM2_抽象工厂.DM2.AComputerFactory;
import com.tony.study.designMode.DM2_抽象工厂.DM2.ProduceKeyBoard;
import com.tony.study.designMode.DM2_抽象工厂.DM2.ProduceMouse;
import com.tony.study.designMode.DM2_抽象工厂.KeyBoard.LeiBoKeyBoard;
import com.tony.study.designMode.DM2_抽象工厂.Mouse.LeiBoMouse;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: Lenovo1Factory
 * @Auther: 皮蛋布丁
 * @Date: 2021/11/01/14:29
 * @Description: 联想电脑生产商
 * （电脑型号01-固定键盘和鼠标生产商）
 */
public class Lenovo1Factory implements AComputerFactory {
    @Override
    public ProduceKeyBoard createKeyBoard() {
        //使用雷柏键盘
        return new LeiBoKeyBoard();
    }

    @Override
    public ProduceMouse createMouse() {
        //使用雷柏鼠标
        return new LeiBoMouse();
    }
}
